﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GF5_Fight_Sim_v1
{
    class Armory
    {
        public enum Bronze
        {
            Lvl0 = 0,
            Lvl1 = 5,
            Lvl2 = 10,
            Lvl3 = 15,
            Lvl4 = 20,
            Lvl5 = 25,
            Lvl6 = 30,
            Lvl7 = 35,
            Lvl8 = 40,
            Lvl9 = 45,
            Lvl10 = 50,
        }

          public enum Silver
        {
            Lvl0 = 0,
            Lvl1 = 6,
            Lvl2 = 12,
            Lvl3 = 18,
            Lvl4 = 24,
            Lvl5 = 30,
            Lvl6 = 36,
            Lvl7 = 42,
            Lvl8 = 48,
            Lvl9 = 54,
            Lvl10 = 60,
        }
          
        public enum Gold
        {
               Lvl0 = 0,
               Lvl1 = 7,
            Lvl2 = 15,
            Lvl3 = 22,
            Lvl4 = 30,
            Lvl5 = 37,
            Lvl6 = 45,
            Lvl7 = 52,
            Lvl8 = 60,
            Lvl9 = 67,
            Lvl10 = 75,
        }

           public enum Muscle
           {
               Lvl0 = 0,
               Lvl1 = 5,
               Lvl2 = 10,
               Lvl3 = 15,
               Lvl4 = 20,
               Lvl5 = 25,
               Lvl6 = 30,
               Lvl7 = 35,
               Lvl8 = 40,
               Lvl9 = 45,
               Lvl10 = 50,
               Lvl11 = 55,
               Lvl12 = 60,
               Lvl13 = 65,
               Lvl14 = 70,
               Lvl15 = 75,
               Lvl16 = 80,
               Lvl17 = 85,
               Lvl18 = 90,
               Lvl19 = 95,
               Lvl20 = 100,
           }

           public enum Med
           {
               Lvl0 = 0,
               Lvl1 = 5,
               Lvl2 = 10,
               Lvl3 = 15,
               Lvl4 = 20,
               Lvl5 = 25,
               Lvl6 = 30,
               Lvl7 = 35,
               Lvl8 = 40,
               Lvl9 = 45,
               Lvl10 = 50,
               Lvl11 = 55,
               Lvl12 = 60,
               Lvl13 = 65,
               Lvl14 = 70,
               Lvl15 = 75,
               Lvl16 = 80,
               Lvl17 = 85,
               Lvl18 = 90,
               Lvl19 = 95,
               Lvl20 = 100,
           }

           public int getBronzeLvlPercent(string LvlNumber)
           {
               int BronzePercent = (int)(Enum.Parse(typeof(Bronze), LvlNumber, true));
               return BronzePercent;
           }

           public int getSilverLvlPercent(string LvlNumber)
           {
               int SilverPercent = (int)(Enum.Parse(typeof(Silver), LvlNumber, true));
               return SilverPercent;
           }

           public double getGoldLvlPercent(string LvlNumber)
           {
               double GoldPercent = (int)(Enum.Parse(typeof(Gold), LvlNumber, true));
               if (GoldPercent == 7 || GoldPercent == 22 || GoldPercent == 37 || GoldPercent == 52 || GoldPercent == 67)
               {
                   return GoldPercent + 0.5;
               }
               else
               {
                   return GoldPercent;
               }
           }

           public int getMusclePercent(string LvlNumber)
           {
               int MuscleMedPercent = (int)(Enum.Parse(typeof(Muscle), LvlNumber, true));
               return MuscleMedPercent;
           }

           public int getMedPercent(string LvlNumber)
           {
               int MuscleMedPercent = (int)(Enum.Parse(typeof(Med), LvlNumber, true));
               return MuscleMedPercent;
           }


    }
}
